package com.itmk.web.companyInfo.mapper;

import com.itmk.web.adminInfo.entity.ForjInfo;
import com.itmk.web.companyInfo.entity.*;
import com.itmk.web.userInfo.entity.TokenUUID;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface CompanyMapper {
    Company getCompanyInfo(String uuid);

    void updateCompanyLogo(String pic,String uuid);

    Boolean updateCompanyInfo(Company company, String uuid);

    Boolean addJobInfo(JobInfo jobInfo, String uuid);

    boolean deleteJobInfo(String job_uuid, String uuid);

    List<JobInfo> allCompanyJob(String uuid);

    JobInfo getOneJob(String job_uuid);

    List<JobInfo> getJobBySkill(String skill, String uuid);

    Boolean updateJobInfo(JobInfo jobInfo, String uuid);

    JobInfo getResume(String job_uuid);

    boolean addResume(String job_uuid, String resumes);

    TokenUUID getTokenUUID(String uuid);

    String checkFile(String uuid);

    String getResumePDF(String user);

    ForjInfo getForJobInfo(String uuid);


    List<JobInfo> getJobFirst(String numMounth, String msalaryMax, String msalaryMin, String dsalaryMax, String dsalaryMin, String city, String forType);

    Boolean updateNameAndIden(String linkman, String linkmanIden,String uuid);

    Boolean CollectJobs(String job_uuid, String user_uuid);

    int getJobCollect(String companyUUID);

    Boolean setJobCollect(int jobCollect,String uuid);

    Boolean updatejobVisits(String jobUUID,String userUUID);

    CollectJob getCollect(String jobUuid, String userUuid);

    void cancelCollect(String jobUuid, String uuid);

    int getJobVisits(String companyUuid);

    Boolean setJobVisits(int jobvisits, String companyUuid);

    int getJobNum(String uuid);



    void updateOfferNum(int offerNum,String uuid);

    int getOfferNum(String uuid);

    void insertOffer(String jobUuid, String companyUuid, String userUuid);

}
